#ifndef _MAINMENU_H_
#define _MAINMENU_H_

#include "cocos2d.h"
#include "Box2D/Box2D.h"

/**
 * This scene contains the start button.
 * It inherits after CCLayer because it has only one layer.
 */
class MainMenuScene :
	public cocos2d::CCLayer
{
public:
	MainMenuScene();
	bool init();
	virtual void didAccelerate(cocos2d::CCAcceleration* pAccelerationValue);
	void onEnter();
	static cocos2d::CCScene* scene();
	void menuStartCallback(cocos2d::CCObject* pSender);
	void menuScoresCallback(cocos2d::CCObject* pSender);
	void menuExitCallback(cocos2d::CCObject* pSender);
	void menuInfoCallback(cocos2d::CCObject* pSender);

	// implement the "static node()" method manually
	CREATE_FUNC(MainMenuScene);

private:
	b2Vec3 __calibrationValues;
	cocos2d::CCSize				__winSize;

	cocos2d::CCMenuItem* createButton(const char* label, cocos2d::SEL_MenuHandler selector, int position);
	cocos2d::CCMenuItem* createInfoButton();
};

#endif // _MAINMENU_H_
